package com.ruoyi.user.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.user.api.domain.CheUser;
import com.ruoyi.user.api.factory.RemoteUsersFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteUsersService", value = "ruoyi-user", fallbackFactory = RemoteUsersFallbackFactory.class)
public interface RemoteUsersService {

    @GetMapping(value = "/users/{ids}")
    public AjaxResult getInfo(@PathVariable("ids") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


};
